package com.etc.entity;
/**
 * 员工的实体类
 * 
 * @author Administrator
 *
 */
public class Emp {
	// 员工的属性 姓名,性别,工号,部门,岗位,工资,是否"已婚",年龄
	private String empNo;
	private String empName;
	private String job;
	
	private double salary;
	private int deptNo;

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public int getDeptNo() {
		return deptNo;
	}

	public void setDeptNo(int deptNo) {
		this.deptNo = deptNo;
	}

	// 其他省略
	public String getEmpNo() {
		return empNo;
	}

	public void setEmpNo(String empNo) {
		this.empNo = empNo;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	@Override
	public String toString() {
		return "Emp [empNo=" + empNo + ", empName=" + empName + ", job=" + job + "]";
	}

	/**
	 * 
	 */
	public Emp() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * 
	 * @param empNo
	 * @param empName
	 * @param job
	 */
	public Emp(String empNo, String empName, String job) {
		super();
		this.empNo = empNo;
		this.empName = empName;
		this.job = job;
	}

	/**
	 * 
	 * @param empNo
	 * @param empName
	 * @param job
	 * @param salary
	 * @param deptNo
	 */
	public Emp(String empNo, String empName, String job, double salary, int deptNo) {
		super();
		this.empNo = empNo;
		this.empName = empName;
		this.job = job;
		this.salary = salary;
		this.deptNo = deptNo;
	}
	
	

}
